
enum SMSQualificationStatusEnum {
  PENDING = 0,
  REJECTED = 1,
  APPROVED = 2,
  EMPTY = 3
}

enum SMSQualificationFormStepEnum {
  COMPANY = 'COMPANY',
  PERSON = 'PERSON',
  OTHER = 'OTHER'
}

// 营业证件类型
enum BusinessLicenseTypeEnum {
  // 企业营业执照
  EnterpriseBusinessLicense = 1,
  // 社会信用代码证书
  SocialCreditCodeCertificate = 4,
  // 事业单位法人证书
  InstitutionLegalPersonCertificate = 7
}

enum DocumentTypeEnum {
  // 身份证
  IDCard = 0
}

// 资质认证状态
enum QualificationStateEnum {
  // 认证中
  InProgress = 0,
  // 认证失败
  Failed = 1,
  // 认证成功
  Success = 2,
  // 未认证
  NotCertified = 3
}

enum CreateQualificationRequestKeysEnum {
  // 资质名称
  QualificationName = 'qualificationName',
  // 营业证件类型
  BusinessLicenseType = 'businessLicenseType',
  // 营业证件附件
  BusinessLicenseAttachment = 'businessLicenseAttachment',
  // 营业证件名称
  BusinessLicenseName = 'businessLicenseName',
  // 统一社会信用代码
  SocialCreditCode = 'socialCreditCode',
  // 营业证件有效期开始时间
  EffectiveStartTime = 'effectiveStartTime',
  // 营业证件有效期结束时间
  EffectiveEndTime = 'effectiveEndTime',
  // 法人姓名
  LegalPerson = 'legalPerson',
  // 证件类型
  DocumentType = 'documentType',
  // 身份证人面像附件id
  IdentityDocumentPositive = 'identityDocumentPositive',
  // 身份证国徽面附件id
  IdentityDocumentReverse = 'identityDocumentReverse',
  // 经办人姓名
  OperatorName = 'operatorName',
  // 经办人身份证号码
  OperatorIdCard = 'operatorIdCard',
  // 经办人手机号
  OperatorPhone = 'operatorPhone',
  // 责任人证件类型
  PersonLiableDocumentType = 'personLiableDocumentType',
  // 负责人-身份证人面像附件id
  ExecutorPositive = 'executorPositive',
  // 负责人-身份证国徽面附件id
  ExecutorReverse = 'executorReverse',
  // 责任人名称
  ExecutorName = 'executorName',
  // 责任人身份证号码
  ExecutorIdCard = 'executorIdCard',
  // 责任人手机号
  ExecutorPhone = 'executorPhone',
  // 其他材料附件id集合
  OtherMaterial = 'otherMaterial',
  // 创建人id
  CreateUserId = 'createUserId',
  // 更新人id
  UpdateUserId = 'updateUserId',
  // 创建时间
  CreateTime = 'createTime',
  // 更新时间
  UpdateTime = 'updateTime'
}

const SMSQualificationFormSteps = [
  SMSQualificationFormStepEnum.COMPANY,
  SMSQualificationFormStepEnum.PERSON,
  SMSQualificationFormStepEnum.OTHER
]

const BusinessLicenseTypeCNNEnum: Record<BusinessLicenseTypeEnum, string> = {
  [BusinessLicenseTypeEnum.EnterpriseBusinessLicense]: '企业营业执照',
  [BusinessLicenseTypeEnum.SocialCreditCodeCertificate]: '社会信用代码证书',
  [BusinessLicenseTypeEnum.InstitutionLegalPersonCertificate]: '事业单位法人证书'
}

const DocumentTypeCNNEnum: Record<DocumentTypeEnum, string> = {
  [DocumentTypeEnum.IDCard]: '居民身份证'
}

const SMSQualificationDialogStatusEnum = {
  [SMSQualificationStatusEnum.PENDING]: '您的资质正在审核中，请耐心等待',
  [SMSQualificationStatusEnum.APPROVED]: '您的资质已认证完成',
  [SMSQualificationStatusEnum.REJECTED]: '您的资质已认证失败，请前往修改',
  [SMSQualificationStatusEnum.EMPTY]: '您暂未提交资质，请前往新建'
}

const SMSQualificationDialogButtonEnum = {
  [SMSQualificationStatusEnum.PENDING]: '查看资质',
  [SMSQualificationStatusEnum.APPROVED]: '查看资质',
  [SMSQualificationStatusEnum.REJECTED]: '修改资质',
  [SMSQualificationStatusEnum.EMPTY]: '新建资质'
}

export {
  SMSQualificationStatusEnum,
  SMSQualificationDialogStatusEnum,
  SMSQualificationDialogButtonEnum,
  SMSQualificationFormSteps,
  SMSQualificationFormStepEnum,
  BusinessLicenseTypeEnum,
  QualificationStateEnum,
  CreateQualificationRequestKeysEnum,
  BusinessLicenseTypeCNNEnum,
  DocumentTypeEnum,
  DocumentTypeCNNEnum
}